<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont">&#xe624;</span>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe632;</span>
      搜索旅行地点/酒店/景点
    </div>
    <router-link to="/city">
      <div class="header-right">
        <span class="iconfont">{{ this.$store.state.city }} &#xe62d;</span>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<style scoped lang="less">
@import "~styles/varibles";
.header{
  display: flex;
  height: 0.86rem;
  line-height: 0.86rem;
  background-color: @bgColor;
  color: white;
  .header-left{
    width: 0.64rem;
    float: left;
    text-align: center;
    .iconfont{
      margin-left: -0.05rem;
    }
  }
  .header-input{
    flex: 1;
    height: 0.64rem;
    background-color: #fff;
    border-radius: 5px;
    margin-top: 0.12rem;
    line-height: 0.64rem;
    color: #333;
    .iconfont{
      color: #666;
      font-size: 0.4rem;
      margin-left: 0.1rem;
    }
  }
  .header-right{
    min-width: 0.1rem;
    padding: 0 0.1rem;
    float: right;
    text-align: center;
    .iconfont{
      color: white;
      font-size: 0.28rem;
    }
  }

}
</style>
